package org.ccu.eshop.service.impl;

import org.ccu.eshop.dao.MerchandiseDao;
import org.ccu.eshop.domain.dto.MerchandiseVo;
import org.ccu.eshop.service.MerchandiseServiceltface;

import java.util.List;

public class MerchandiseServiceImpl implements MerchandiseServiceltface {
        MerchandiseDao merchandiseDao=new MerchandiseDao();
    @Override
    public List<MerchandiseVo> getMerchantListBySpecial(String special,String query) {
        int s=Integer.parseInt(special);
        return merchandiseDao.selectMerchantListBySpecial(s,query);
    }

    @Override
    public MerchandiseVo getMerchantById(String id) {
        int int_id=Integer.parseInt(id);
        return merchandiseDao.selectMerchantById(int_id);
    }
}
